package me.zhengjie.modules.system.repository;

import me.zhengjie.modules.system.domain.Org;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @Author: xin.peng
 * @Date: 2020/12/2
 * @Description :
 */
public interface OrgRepository extends JpaRepository<Org, String>, JpaSpecificationExecutor<Org> {

    /**
     * 判断是否存在子节点
     * @param parentId /
     * @return
     */
    int countByParentId(String parentId);

}
